package ldh.text.service;

import java.io.IOException;

public interface CursorDataService<T> extends DataService<T> {

    T loadNextData(int size) throws IOException;

    T loadPreData(int size) throws IOException;

    long getStartPosition();

    long getEndPosition();

    /**
     * 关闭数据源
     */
    void close() throws IOException;

}
